package com.aplink.generic.util.objectrule;

import com.aplink.generic.pojo.GenericAttribute;

public class ValueContainRule extends ValueBaseRule {

	public ValueContainRule() {
		this.value = "";
	}

	public ValueContainRule(final String mValue) {
		this.value = mValue;
	}

	@Override
	public boolean checkRule(final GenericAttribute att) {
		if (att.getValue().toString().contains(this.value) == true) {
			return true;
		}
		return false;
	}

}
